package com.taotao.frame.common.annotation;


import java.lang.annotation.*;

/**
 * 权限校验
 *
 * @author fanbeibei
 * @version V1.0
 * @since 2019/4/25 17:52
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface AuthRequired {

    /**
     * 权限编码,设置则需要权限校验,不设置则只校验登录
     *
     * @return
     */
    String authCode() default "";
}
